package com.htjc.integral.interactionouter.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.htjc.integral.common.annotation.InvokeLog;
import com.htjc.integral.interactionouter.service.IInvokeService;

import lombok.extern.slf4j.Slf4j;

@Slf4j(topic="interactionOuterLogger")
@RestController
@RequestMapping({"/outer/InvokeController"})
public class InvokeController {
	@Autowired
	private IInvokeService iInvokeService;
	
	
	@InvokeLog(value="强隔离内外网穿透",params={"data","wsdurl"})
	@RequestMapping(value = {"/invokeQuery"}, produces = {"text/json;charset=UTF-8;"})
	public String invokeQuery(@RequestBody String params){
		JSONObject json = JSON.parseObject(params);
		return iInvokeService.invokeQuery(json.toString());
	}

}
